<!DOCTYPE html> {% extends "layout.html" %} {% block body %}

<div class="col-md-2">

</div>
<div class="col-md-8">
	<form action="{{ url_for('edit_blog', blogid=blog.blogid) }}" method="post" class="edit-entry">
		<div class="form-group">
			<label for="blog_title">标题</label>
			<input type="text" class="form-control" id="blog_title" style="width: 300px;" name=title placeholder="博客标题" value="{{blog.title}}">
		</div>
		<div class="form-group">
			<label for="classify">分类</label>
			<input type="text" class="form-control" id="classify" style="width: 300px;" placeholder="博客分类">
		</div>
		<div class="form-group">
			<label for="abstract">摘要</label>
			<textarea class="form-control" id="abstract" rows="2" style="width: 352px; height: 81px;" placeholder="博客摘要">
								
							</textarea>
		</div>
		<div class="form-group">
			<label for="content">正文</label>
			<textarea class="form-control" rows="10" id="content" name=text>{{blog.text}}</textarea>
		</div>
		<button type="submit" class="btn btn-default">发表</button>
	</form>
</div>
<div class="col-md-2">

</div>
{% endblock %}